package com.mike.mybatisplus.service;

import com.mike.mybatisplus.pojo.Student;

import java.util.List;

/**
 * @ Author     ：mmzs.
 * @ Date       ：Created in  2021/11/30 18:53
 * @ Description：数据库 ( student ) 业务逻辑层 接口
 */
public interface StudentService {

    /**
     * @author: Andy
     * @time: 2021/11/30 19:01
     * @return:
     * @description: 通过 id 查询 数据 / 缓存
     */
    public abstract Student queryOne (Long id);

    /**
     * @author: Andy
     * @time: 2021/11/30 19:01
     * @return:
     * @description: 查询全部 数据 / 缓存
     */
    public abstract List<Object> queryAll ();


    /**
     * @author: Andy
     * @time: 2021/11/30 19:02
     * @return:
     * @description: 添加 数据 / 缓存
     */
    public abstract boolean additionOne (Student student);

    /**
     * @author: Andy
     * @time: 2021/11/30 19:02
     * @return:
     * @description: 添加 缓存元素
     */
    public abstract boolean additionRedisOne (Student student);

    /**
     * @author: Andy
     * @time: 2021/11/30 19:01
     * @return:
     * @description: 修改 数据 / 缓存
     */
    public abstract boolean alterOne (Student student);

    /**
     * @author: Andy
     * @time: 2021/11/30 19:02
     * @return:
     * @description: 删除 数据 / 缓存
     */
    public abstract boolean removeOne (Long id);
}
